<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<script src="dist/js/jquery/1.11.0/jquery.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>投票</title>
<link rel="stylesheet" href="dist/css/site.min.css">
<script type="text/javascript" src="dist/js/site.min.js"></script>
<style type="text/css">
tr{
height: 46px;
}

</style>
</head>
<body>

	<div>
		<nav class="navbar navbar-inverse" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target="#bs-content-row-navbar-collapse-6">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<h4 style="color: #ECF0F1;">
					<span class="glyphicon glyphicon-globe"> ${channel.title}频道
					
				</h4>
			</div>
		</div>
		</nav>
		${msg }
		<div class="content-row">

			<div class="bs-example">
				<table class="table">
					<thead>
						<c:forEach items="${voteList}" var="vote" varStatus="status">
							<tr class="success">
								<td colspan="2">${status.index +1}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${vote.topic}</td>
								<td/>
							</tr>
							<tr>
							<td/>
							<td>
							<c:forEach items="${vote.voteOptionList}" var="option"
								varStatus="status2">
								<c:if test="${option.voteId eq vote.id}">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${option.title}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${option.ticketNumber}
								</c:if>
							</c:forEach>
							</td>
							</tr>
						</c:forEach>
					</thead>
				</table>
			</div>


		</div>
	</div>

</body>
</html>